package com.cn.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "优惠券")
public class CouponDTO {

    @ApiModelProperty(value = "表ID")
    private Integer id;

    @ApiModelProperty(value = "优惠券ID")
    private Integer coupon_id;

    @ApiModelProperty(value = "图片")
    private String img;

    @ApiModelProperty(value = "优惠券名字")
    private String name;

    @ApiModelProperty(value = "优惠券类型")
    private String type;

    @ApiModelProperty(value = "发行量")
    private int count;

    @ApiModelProperty(value = "优惠额度")
    private BigDecimal coupon_amount;

    @ApiModelProperty(value = "有效期")
    private String effective_time;

    @ApiModelProperty(value = "优惠券状态")
    private int status;

    @ApiModelProperty(value = "订单编号")
    private String order_number;

    @ApiModelProperty(value = "发行量")
    private String amount;

    @ApiModelProperty(value = "活动开始时间")
    private String start_time;

    @ApiModelProperty(value = "活动结束时间")
    private String end_time;

    @ApiModelProperty(value = "领取人ID")
    private int user_id;

    @ApiModelProperty(value = "优惠券创建时间")
    private String create_time;

    @ApiModelProperty(value = "优惠券更新时间")
    private String update_time;

    @ApiModelProperty(value = "优惠券领取时间")
    private String get_time;

    @ApiModelProperty(value = "优惠券使用时间")
    private String used_time;

    @ApiModelProperty(value = "使用说明")
    private String explain;

    @ApiModelProperty(value = "优惠券状态")
    private int state;
}
